package org.sky.sys.api;

import org.sky.sys.api.fallback.SysOrganClientFallbackFactory;
import org.sky.sys.entity.SysOrgan;
import org.springframework.cloud.netflix.feign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestMapping;

/**
 *
 * Feign服务调用接口
 */
@FeignClient(value = "MICROSERVICECLOUD-DEPT",fallbackFactory= SysOrganClientFallbackFactory.class)
@RequestMapping("/sysOrgan")
public interface ISysOrganClientRemoteApi {
    @GetMapping(value = "/get/{code}")
    public SysOrgan getSysOrganByCode123(@PathVariable(value = "code") String code);
}
